package de.ttf.ts.model;

import java.io.Serializable;

public class EntityInfo<T extends BaseEntity<T>> implements Serializable {

    private static final long serialVersionUID = 1L;

    private long id;
    private long version;

    public EntityInfo() {
    }

    public EntityInfo(BaseEntity<T> configEntity) {
        this.id = configEntity.getId();
        this.version = configEntity.getVersion();
    }

    public long getId() {
        return id;
    }

    public long getVersion() {
        return version;
    }

    @Override
    public String toString() {
        return "EntityInfo(Id: " + id + ", Version: " + version + ")";
    }

}
